package Submarine;

import javax.swing.*;

public class Devil extends SeaObject implements EnemyLife,EnemyScore{
    private int life = 3;

    public Devil() {
        super(64, 64);
    }

    @Override
    public void move() {
        x += speed;
    }

    public ImageIcon getImage() { return Images.devil; }

    public int getLife(){return 4;}

    public int getScore(){return 100;}

    public int life(){return life;}

    public void loselife(){life--;}

    public DevilAttack shootDevailAttack(){return new DevilAttack(x+width/2,y-width/2);}
}
